using System;

namespace Touchmax
{
	public class OpInvoiceDet
	{
		private int sequenceId;
		private string docNo;
		private int docLineNo;
		private int itemId;
		private string chgCode;
		private string remark;
		private decimal totAmt;
		private string docType;
		private string jobOrder;

		public int SequenceId
		{
			get { return this.sequenceId; }
		}

		public string DocNo
		{
			get { return this.docNo; }
			set { this.docNo = value; }
		}

		public int DocLineNo
		{
			get { return this.docLineNo; }
			set { this.docLineNo = value; }
		}

        public string VehicleNo
        {
            get
            {
                string custName = "";
                if (this.itemId > 0)
                {
                    string sql = "select VehicleNo from opVehicle where sequenceid='" + itemId + "'";
                    custName = SafeValue.SafeString(Touchmax.Manager.ORManager.ExecuteScalar(sql), "");
                }
                return custName;
            }
        }
		public int ItemId
		{
			get { return this.itemId; }
			set { this.itemId = value; }
		}

		public string ChgCode
		{
			get { return this.chgCode; }
			set { this.chgCode = value; }
		}

		public string Remark
		{
			get { return this.remark; }
			set { this.remark = value; }
		}

		public decimal TotAmt
		{
			get { return this.totAmt; }
			set { this.totAmt = value; }
		}

		public string DocType
		{
			get { return this.docType; }
			set { this.docType = value; }
		}

		public string JobOrder
		{
			get { return this.jobOrder; }
			set { this.jobOrder = value; }
		}
	}
}
